import postApi from '../../utils/http/api'

export default {
  //获取手机号验证码
  getAutoCode (tsId, mobile) {
    return postApi({
      actionCode: '200103',
      method: 'getAutoCode',
      requestData: {
        tsId,
        mobile
      },
    })
  },
  editUser (mobile, code) {
    return postApi({
      actionCode: '100500',
      method: 'editUser',
      requestData: {
        mobile, code
      },
    })
  },
  getUserInfo () {
    return postApi({
      actionCode: '100100',
      method: 'getUserInfo',
      requestData: {},
    })
  },
  getTSInfoById (tsId) {
    return postApi({
      actionCode: '200103',
      method: 'getTSInfoById',
      requestData: {
        tsId
      },
    })
  },
  drawGuilingSubjectOrder (tsId, mobile, code) {
    return postApi({
      actionCode: '200103',
      method: 'drawGuilingSubjectOrder',
      requestData: {
        tsId, mobile, code
      },
    })
  },
}
